package com.pwc.conversionTool.task;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import com.pwc.conversionTool.csv.CsvHelper;

public class SynchronousProcess {
	
	private List<DataAdapter> data;
	
	private List<DataAdapter> filteredData;
	
	private String payload="";
	
	private List<String> payloads;
	
	
	public void initialDataByCsvFile(List<File> files) throws IOException
	{
		data=new ArrayList<DataAdapter>();
		for (File file : files) {
			CsvHelper helper=new CsvHelper(file);
			DataAdapter tempData=new DataAdapter(helper.getAll());
			data.add(tempData);
		}
	}
	
	public void DoFilter(){
		Filter filter=new Filter();
		filteredData=filter.doFilter(data);
	}
	
	public void doMapping(){
		//generate payload from relation
	}
	
	//do sending
	public void doSending(){
		
	}
	
	

}
